<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        html,
        body {
            height: 100%;
            width: 100%;
            margin: 0;
        }
    </style>
    <style>
        #menu {
            position: absolute;
            background: #fff;
            padding: 10px;
            font-family: "Open Sans", sans-serif;
        }
    </style>


</head>

<body>
    <style>
        /* <!-- 必须要放body里,否则会被mapbox-ol的样式(webpack把它自动注入到header)给覆盖掉 --> */
        .map {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100%;
        }
    </style>

    <div id="before" class="map"></div>
    <div id="after" class="map"></div>
    <!-- 切换图层 -->
    <div id="menu">
        <input id="streets-v11" type="radio" name="rtoggle" value="streets" checked="checked">
        <label for="streets">streets</label>
        <input id="light-v10" type="radio" name="rtoggle" value="light">
        <label for="light">light</label>
        <input id="dark-v10" type="radio" name="rtoggle" value="dark">
        <label for="dark">dark</label>
        <input id="outdoors-v11" type="radio" name="rtoggle" value="outdoors">
        <label for="outdoors">outdoors</label>
        <input id="satellite-v9" type="radio" name="rtoggle" value="satellite">
        <label for="satellite">satellite</label>
    </div>

    <script src="main.js"></script>
</body>

</html>